package com.example.zz.example.databinding;

/**
 * @author: zhuozhang6
 * @date: 2022/6/8
 * @email: zhuozhang6@iflytek.com
 * @Description:
 */

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.example.zz.example.BR;


public class PeopleBean extends BaseObservable {

    @Bindable
    public String name;

    private int age;

    public PeopleBean(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    public void setName2(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
        notifyChange();
    }
}

